local zongshi = fk.CreateSkill{
  name = "wk_heg__zongshi",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["wk_heg__zongshi"] = "纵适",
  [":wk_heg__zongshi"] = "锁定技，当你叠置时，取消之；当你受到属性伤害时，若你横置，此伤害-1。",
 
  ["$wk_heg__zongshi1"] = "买卖不成，情义还在。",
  ["$wk_heg__zongshi2"] = "此等小事，何须挂耳？",
}

zongshi:addEffect(fk.BeforeTurnOver, {
  anim_type = "defensive",
  can_trigger = function (self, event, target, player, data)
    return player == target and player:hasSkill(zongshi.name)
  end,
  on_use = function (self, event, target, player, data)
    data.prevented = true
  end,
})

zongshi:addEffect(fk.DamageInflicted, {
  anim_type = "defensive",
  can_trigger = function (self, event, target, player, data)
    return player == target and player:hasSkill(zongshi.name) and player.chained and data.damageType ~= fk.NormalDamage
  end,
  on_use = function (self, event, target, player, data)
    data:changeDamage(-1)
  end,
})
  
return zongshi